/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package wso.bus;

import wso.dao.ProductDao;
import wso.dto.WsoProduct;

/**
 *
 * @author Violet_Ink
 */
public class ProductBusImpl implements ProductBus{

    private ProductDao productDao;

    public void setProductDao(ProductDao productDao) {
        this.productDao = productDao;
    }

    public void deleteProduct(String productid) {
        productDao.deleteProduct(productid);
    }

    public void saveorUpdateProduct(WsoProduct product) {
        productDao.saveOrUpdateProduct(product);
    }

    public WsoProduct[] getAllProduct() {
        return productDao.getAllProduct();
    }

    public WsoProduct getProduct(String productid) {
        return productDao.getProduct(productid);
    }
}
